Skip to content

Conversation

bhouston
Copy link
Member

Description

This PR removes the global agentStates map from agentStart.ts and updates both agentStart.ts and agentMessage.ts to use the agentTracker that's passed into the execute function as part of the context.

Changes

  • Removed the global agentStates Map from agentStart.ts
  • Updated agentMessage.ts to use agentTracker from context instead of importing agentStates
  • Updated tests to use agentTracker instead of the global agentStates

Testing

  • All tests pass
  • Build completes successfully
  • Type checking passes

Related Issues

Fixes #308

@bhouston bhouston merged commit 2f1a84c into main Mar 18, 2025
1 check passed
Copy link

🎉 This PR is included in version mycoder-agent-v1.5.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Copy link

🎉 This PR is included in version mycoder-v1.5.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Refactor agentStart.ts and agentMessage.ts to remove global agentStates
1 participant